package com.yuye.test.order;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RunServiceImpl implements CommandLineRunner {

    public RunServiceImpl(List<DemoService> demoServices) {
        demoServices.forEach(demoService -> demoService.say());
    }

    @Override
    public void run(String... args) throws Exception {

    }
}